from typing import List, Optional, Dict, Any
from pydantic import BaseModel
from typing import Optional
from .ModelConfig import ModelConfig

class QuestionGenerateRequest(BaseModel):
    model: str
    stream: bool
    top_k: Optional[int] = 1
    max_results: Optional[int] = 5
    ranker: bool = True
    session_id: str
    m_config: Optional[ModelConfig] = ModelConfig(temperature=0.8, top_p=0.9, max_tokens=1000)